package flexo.graphic;

import flexo.common.ResourcePool;

public class TexturePool extends ResourcePool
{
	public Texture get(String resourceName)
	{
		Texture texture = (Texture)super.get(resourceName);
		if (texture == null)
		{
			texture = new Texture(resourceName);
			flexo.file.FileSystem fs = (flexo.file.FileSystem)flexo.Kernel.getSystem(flexo.file.FileSystem.ID);
			add(fs.getFullPath(resourceName),texture);
		}
		return texture;
	} 
}
